package com.feiyun.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.feiyun.common.PageParam;
import com.feiyun.model.dto.WeChatPhoneDTO;
import com.feiyun.model.entity.UserPhoto;
import com.feiyun.model.entity.WxUserLogin;
import org.springframework.stereotype.Service;

import com.feiyun.model.dto.UserConditionDto;
import com.feiyun.model.entity.User;

/**
 * @ClassName IUserService
 * @author: xingming
 * @Description:
 * @time 2023/03/12 17:26:56
 * @Version 1.0
 */

@Service
public interface IUserService {
    User register(User user);

    void deleteByUserId(int id);

    void updateUser(User user);

    Page<User> selectUserByCondition(PageParam<UserConditionDto> userConditionDto);

    Page<User> selectUser(PageParam<User> userPageParam);

    List<UserPhoto> selectPictureById(UserPhoto userPhoto);

    User wxlogin(WeChatPhoneDTO weChatPhone);

    User getUserInfo(User user);

    Map<String,Integer> getUserCount(PageParam<UserConditionDto> conditionDto);

    User wxGetUserInfo(UserConditionDto user);
}
